package com.bruce.pattern.behavioral.observer.guava;

import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/10 20:36
 */
@Slf4j
public class GuavaEvent {

    @Subscribe
    public void subscribe1(String str) {
        log.info("subscribe1监听到发送的内容:" + str);
    }

    @Subscribe
    public void subscribe2(String str) {
        log.info("subscribe2监听到发送的内容:" + str);
    }


}
